
// Student.cpp 文件
#include "Student.h"    // 记得添加类头文件

Student::Student(string n, int a) : name(n), age(a)
{
}

Student::~Student()
{
}

void Student::setName(string name)
{
    this->name = name;
}

string Student::getName() const
{
    return name;
};


void Student::setAge(int age)
{
    this->age = age;
}

int Student::getAge() const
{
    return age;
}